Click or drag to resize

CryptoUtils Methods

The CryptoUtils type exposes the following members.

Methods
 NameDescription
Public Extension MethodBase64UrlDecode Decodes Base64 URL encoded string to byte array.
Public Extension MethodBase64UrlEncode Encodes byte array to string using Base64 URL encoding.
Public methodStatic memberCreateBioAuthHash Creates Auth hash for authorization with Biometrics
Public methodStatic memberDecryptAesV1 Decrypts data with AES CBC.
Public methodStatic memberDecryptAesV2 Decrypts with AES GCM.
Public methodStatic memberDecryptEc Decrypts data wit EC cryptography.
Public methodStatic memberDecryptRsa Decrypts data with RSA private key
Public methodStatic memberDeriveKeyV1 Derives encryption key from password.
Public methodStatic memberDeriveKeyV2 Derives encryption key from password.
Public methodStatic memberDeriveV1KeyHash Derives encryption key from password and gets HSA256 hash
Public methodStatic memberEncryptAesV1 Encrypts data with AES CBC algorithm.
Public methodStatic memberEncryptEc Encrypts data with EC cryptography.
Public methodStatic memberEncryptRsa Encrypts data with RSA public key.
Public methodStatic memberGenerateEcKey Generate EC key pair.
Public methodStatic memberGenerateEncryptionKey Generate AES encryption key. Random 32 bytes.
Public methodStatic memberGeneratePassword Generates random password.
Public methodStatic memberGenerateRsaKey Generates RSA key pair.
Public methodStatic memberGenerateUid Generates UID. Random 16 bytes encoded to Base64 URL encoded.
Public methodStatic memberGetRandomBytes Generates secure random bytes.
Public methodStatic memberGetTotpCode Gets TOTP code for URL
Public methodStatic memberLoadPrivateEcKey Loads EC private key.
Public methodStatic memberLoadPrivateKey Loads RSA private key.
Public methodStatic memberLoadPublicEcKey LoadV2 EC public key.
Public methodStatic memberLoadPublicKey Loads RSA public key.
Public methodStatic memberUnloadEcPrivateKey Serializes EC private key.
Public methodStatic memberUnloadEcPublicKey Serializes EC public key.
Top
See Also