Skip to content

Commit 8f53312

Browse files
Feat: Rename encryption to cryptography
1 parent c28db76 commit 8f53312

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

languages/ruby/examples/basic.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@
7272

7373
### Encryption tests:
7474
plaintext_data = 'Hello World'
75-
key = infisical.encryption.create_symmetric_key
75+
key = infisical.cryptography.create_symmetric_key
7676

77-
encrypted_data = infisical.encryption.encrypt_symmetric(data: plaintext_data, key: key)
77+
encrypted_data = infisical.cryptography.encrypt_symmetric(data: plaintext_data, key: key)
7878

79-
decrypted_data = infisical.encryption.decrypt_symmetric(
79+
decrypted_data = infisical.cryptography.decrypt_symmetric(
8080
ciphertext: encrypted_data['ciphertext'],
8181
iv: encrypted_data['iv'],
8282
tag: encrypted_data['tag'],

languages/ruby/infisical-sdk/lib/clients/encryption.rb languages/ruby/infisical-sdk/lib/clients/cryptography.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
module InfisicalSDK
1313
# Perform encryption
14-
class EncryptionClient
14+
class CryptographyClient
1515
def initialize(command_runner)
1616
@command_runner = command_runner
1717
end

languages/ruby/infisical-sdk/lib/infisical-sdk.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
require_relative 'command_runner'
1111
require_relative 'clients/secrets'
1212
require_relative 'clients/auth'
13-
require_relative 'clients/encryption'
13+
require_relative 'clients/cryptography'
1414

1515
module InfisicalSDK
1616
class InfisicalClient
17-
attr_reader :infisical, :command_runner, :secrets, :auth, :encryption
17+
attr_reader :infisical, :command_runner, :secrets, :auth, :cryptography
1818

1919
def initialize(site_url = nil, cache_ttl = 300)
2020
settings = ClientSettings.new(
@@ -34,7 +34,7 @@ def initialize(site_url = nil, cache_ttl = 300)
3434
@command_runner = CommandRunner.new(@infisical, @handle)
3535
@secrets = SecretsClient.new(@command_runner)
3636
@auth = AuthClient.new(@command_runner)
37-
@encryption = EncryptionClient.new(@command_runner)
37+
@cryptography = CryptographyClient.new(@command_runner)
3838
end
3939

4040
def free_mem

languages/ruby/infisical-sdk/sig/infisical_sdk/encryption_client.rbs languages/ruby/infisical-sdk/sig/infisical_sdk/cryptography_client.rbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module InfisicalSDK
2-
class EncryptionClient
2+
class CryptographyClient
33
@command_runner: CommandRunner
44
def initialize: (CommandRunner) -> void
55

languages/ruby/infisical-sdk/sig/infisical_sdk/infisical_client.rbs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module InfisicalSDK
1010
attr_reader infisical: InfisicalModule
1111

1212
attr_reader auth: AuthClient
13-
attr_reader encryption: EncryptionClient
13+
attr_reader cryptography: CryptographyClient
1414
attr_reader secrets: SecretsClient
1515

1616
def initialize: (String?, Integer?) -> untyped

0 commit comments

Comments
 (0)