CryptoUtils Class

Provides a set of encryption methods.

Definition

Namespace: KeeperSecurity.Utils
Assembly: KeeperSdk (in KeeperSdk.dll) Version: 1.1.0
C#
public static class CryptoUtils
Inheritance
Object    CryptoUtils

Methods

Base64UrlDecode Decodes Base64 URL encoded string to byte array.
Base64UrlEncode Encodes byte array to string using Base64 URL encoding.
CreateBioAuthHash Creates Auth hash for authorization with Biometrics
DecryptAesV1 Decrypts data with AES CBC.
DecryptAesV2 Decrypts with AES GCM.
DecryptEc 
DecryptRsa 
DeriveKeyV1 Derives encryption key from password.
DeriveKeyV2 Derives encryption key from password.
DeriveV1KeyHash Derives encryption key from password and gets HSA256 hash
EncryptAesV1 Encrypts data with AES CBC algorithm.
EncryptEc 
EncryptRsa 
GenerateEcKey 
GenerateEncryptionKey Generate AES encryption key. Random 32 bytes.
GeneratePassword Generates random password.
GenerateRsaKey 
GenerateUid Generates UID. Random 16 bytes encoded to Base64 URL encoded.
GetRandomBytes Generates secure random bytes.
GetTotpCode Gets TOTP code for URL
LoadEcPrivateKey Loads EC private key.
LoadEcPublicKey LoadV2 EC public key.
LoadRsaPrivateKey Loads RSA private key.
LoadRsaPublicKey Loads RSA public key.
UnloadEcPrivateKey 
UnloadEcPublicKey 
UnloadRsaPrivateKey 
UnloadRsaPublicKey 

Fields

SpecialCharacters Special characters for password generator

See Also