Platforms to show: All Mac Windows Linux Cross-Platform
Encryption and Hash
Encryption, decryption and hash functions.
- Globals
- Adler32MemoryMBS(adler as UInt32, Buffer as memoryblock, offset as Integer, length as Integer) as UInt32
- Adler32StringMBS(adler as UInt32, Buffer as string) as UInt32
- CalculateCRC16MemoryMBS(data as MemoryBlock, Start as UInt16 = 65535, Polynomial as UInt16 = &h1021, FinalXOR as UInt16 = 0, ReflectInput as boolean = false, ReflectOutput as boolean = false) as UInt16
- CalculateCRC16StringMBS(data as string, Start as UInt16 = 65535, Polynomial as UInt16 = &h1021, FinalXOR as UInt16 = 0, ReflectInput as boolean = false, ReflectOutput as boolean = false) as UInt16
- CalculateTOTPMBS(Key as String, timeNow as UInt64, timeStart as UInt64, timeStep as UInt64, digitCount as Integer, DecodeBase32 as Boolean = false) as UInt32
- CRC16MBS(data as string) as UInt16
- CRC32MemoryMBS(crc as UInt32, Buffer as memoryblock, offset as Integer, length as Integer) as UInt32
- CRC32StringMBS(crc as UInt32, Buffer as string) as UInt32
- CRC_32InMemContMBS(address as Ptr, length as Integer, prevCRC as UInt32) as UInt32
- CRC_32InMemMBS(address as Ptr, length as Integer) as UInt32
- CRC_32OfStrContMBS(s as String, prevCRC as UInt32) as UInt32
- CRC_32OfStrMBS(s as String) as UInt32
- CRC_CCITTInMemContMBS(address as Ptr, length as Integer, prevCRC as UInt32) as UInt32
- CRC_CCITTInMemMBS(address as Ptr, length as Integer) as UInt32
- CRC_CCITTOfStrContMBS(s as String, prevCRC as UInt32) as UInt32
- CRC_CCITTOfStrMBS(s as String) as UInt32
- CRC_DillonInMemMBS(bitWidth as Integer, address as Ptr, length as Integer) as String
- CRC_DillonOfStrMBS(bitWidth as Integer, s as String) as String
- CRC_DillonUInt64InMemMBS(bitWidth as Integer, address as Ptr, length as Integer) as UInt64
- CRC_DillonUInt64MBS(extends mem as memoryblock, bitWidth as Integer, offset as Integer, numBytes as Integer) as UInt64
- CRC_DillonUInt64OfStrMBS(bitWidth as Integer, s as String) as UInt64
- CurrentUnixTimeMBS as UInt64
- DecodeFromBase32MBS(data as string) as String
- EncodeToBase32MBS(data as string) as String
- GetHash32MBS(s as string) as UInt32
- MD5MBS(data as memoryblock) as string
- MD5MBS(data as string) as string
- MD5StringMBS(data as memoryblock) as string
- MD5StringMBS(data as string) as string
- ModBusCalculateRTUMessageCRCMBS(data as string) as UInt16
- ValidateUUIDMBS(UUID as string, mode as Integer = 0, requiredVersion as Integer = 0) as string
- Classes
- class Argon2MBS
- method Calc(type as Integer = 0) as String
- method Constructor
- method Destructor
- method Verify(Hash as String, type as Integer = 0) as boolean
- property AssociatedData as String
- property Cost as Integer
- property Flags as Integer
- property Lanes as Integer
- property LastError as Integer
- property LastErrorMessage as String
- property MemoryCost as Integer
- property OutputLength as Integer
- property Password as String
- property Salt as String
- property Secret as String
- property Threads as Integer
- property Version as Integer
- class BlowfishMBS
- method Decrypt(iodata as memoryblock)
- shared method Decrypt(key as string, data as string) as string
- method DecryptCBC(data as string, byref temp as memoryblock) as string
- method DecryptCBC(idata as memoryblock, odata as memoryblock, offset as Integer, length as Integer, ivec as memoryblock)
- method DecryptCFB64(data as string, byref temp as memoryblock) as string
- method DecryptCFB64(idata as memoryblock, odata as memoryblock, offset as Integer, length as Integer, ivec as memoryblock, byref num as Integer)
- method DecryptECB(data as string) as string
- method DecryptECB(idata as memoryblock, odata as memoryblock, offset as Integer)
- method DecryptOFB64(data as string, byref temp as memoryblock) as string
- method DecryptOFB64(idata as memoryblock, odata as memoryblock, offset as Integer, length as Integer, ivec as memoryblock, byref num as Integer)
- method Encrypt(iodata as memoryblock)
- shared method Encrypt(key as string, data as string) as string
- method EncryptCBC(data as string, byref temp as memoryblock) as string
- method EncryptCBC(idata as memoryblock, odata as memoryblock, offset as Integer, length as Integer, ivec as memoryblock)
- method EncryptCFB64(data as string, byref temp as memoryblock) as string
- method EncryptCFB64(idata as memoryblock, odata as memoryblock, offset as Integer, length as Integer, ivec as memoryblock, byref num as Integer)
- method EncryptECB(data as string) as string
- method EncryptECB(idata as memoryblock, odata as memoryblock, offset as Integer)
- method EncryptOFB64(data as string, byref temp as memoryblock) as string
- method EncryptOFB64(idata as memoryblock, odata as memoryblock, offset as Integer, length as Integer, ivec as memoryblock, byref num as Integer)
- method SetKey(key as string)
- class CCCryptorMBS
- method Constructor(operation as Integer, Algorithm as Integer, options as Integer, key as Ptr, keyLength as UInt64, iv as Ptr = nil)
- method Constructor(operation as Integer, Algorithm as Integer, options as Integer, key as String, iv as Ptr = nil)
- shared method Crypt(Operation as Integer, Algorithm as Integer, Options as Integer, key as Ptr, KeyLength as UInt64, IV as Ptr, DataIn as Ptr, DataInLength as UInt64, DataOut as Ptr, DataOutAvailable as UInt64, byref DataOutMoved as UInt64) as Integer
- shared method Crypt(Operation as Integer, Algorithm as Integer, Options as Integer, key as string, IV as Ptr, DataIn as string, byref DataOut as string) as Integer
- method Final(DataOut as Ptr, dataOutAvailable as UInt64, byref dataOutMoved as UInt64)
- method GetOutputLength(inputLength as UInt64, Final as Boolean = true) as UInt64
- shared method RandomGenerateBytes(data as MemoryBlock) as integer
- method Reset(iv as Ptr = nil)
- method Update(dataIn as Ptr, dataInLength as UInt64, dataOut as Ptr, dataOutAvailable as UInt64, byref dataOutMoved as UInt64)
- method Update(dataIn as String, dataOut as Ptr, dataOutAvailable as UInt64, byref dataOutMoved as UInt64)
- property Handle as Integer
- property Lasterror as Integer
- class CCHMacMBS
- method Constructor(algorithm as Integer, key as memoryblock)
- method Constructor(algorithm as Integer, key as Ptr, keyLength as UInt64)
- method Constructor(algorithm as Integer, key as string)
- method Final(macOut as Ptr)
- method Finalize as Memoryblock
- shared method Hmac(algorithm as Integer, key as Ptr, keyLength as Integer, data as Ptr, dataLength as Integer, MacOut as Ptr)
- shared method Hmac(algorithm as Integer, key as String, data as String) as String
- method Update(data as memoryblock)
- method Update(data as Ptr, dataLength as UInt64)
- method Update(data as string)
- property Algorithm as Integer
- class CCMD2MBS
- class CCMD4MBS
- class CCMD5MBS
- class CCSHA1MBS
- class CCSHA224MBS
- class CCSHA256MBS
- class CCSHA384MBS
- class CCSHA512MBS
- class CipherMBS
- shared method aes_128_cbc as CipherMBS
- shared method aes_128_cbc_hmac_sha256 as CipherMBS
- shared method aes_128_ccm as CipherMBS
- shared method aes_128_cfb1 as CipherMBS
- shared method aes_128_cfb128 as CipherMBS
- shared method aes_128_cfb8 as CipherMBS
- shared method aes_128_ctr as CipherMBS
- shared method aes_128_ecb as CipherMBS
- shared method aes_128_gcm as CipherMBS
- shared method aes_128_ocb as CipherMBS
- shared method aes_128_ofb as CipherMBS
- shared method aes_128_wrap as CipherMBS
- shared method aes_128_wrap_pad as CipherMBS
- shared method aes_128_xts as CipherMBS
- shared method aes_192_cbc as CipherMBS
- shared method aes_192_ccm as CipherMBS
- shared method aes_192_cfb1 as CipherMBS
- shared method aes_192_cfb128 as CipherMBS
- shared method aes_192_cfb8 as CipherMBS
- shared method aes_192_ctr as CipherMBS
- shared method aes_192_ecb as CipherMBS
- shared method aes_192_gcm as CipherMBS
- shared method aes_192_ocb as CipherMBS
- shared method aes_192_ofb as CipherMBS
- shared method aes_192_wrap as CipherMBS
- shared method aes_192_wrap_pad as CipherMBS
- shared method aes_256_cbc as CipherMBS
- shared method aes_256_cbc_hmac_sha256 as CipherMBS
- shared method aes_256_ccm as CipherMBS
- shared method aes_256_cfb1 as CipherMBS
- shared method aes_256_cfb128 as CipherMBS
- shared method aes_256_cfb8 as CipherMBS
- shared method aes_256_ctr as CipherMBS
- shared method aes_256_ecb as CipherMBS
- shared method aes_256_gcm as CipherMBS
- shared method aes_256_ocb as CipherMBS
- shared method aes_256_ofb as CipherMBS
- shared method aes_256_wrap as CipherMBS
- shared method aes_256_wrap_pad as CipherMBS
- shared method aes_256_xts as CipherMBS
- shared method aria_128_cbc as CipherMBS
- shared method aria_128_ccm as CipherMBS
- shared method aria_128_cfb1 as CipherMBS
- shared method aria_128_cfb128 as CipherMBS
- shared method aria_128_cfb8 as CipherMBS
- shared method aria_128_ctr as CipherMBS
- shared method aria_128_ecb as CipherMBS
- shared method aria_128_gcm as CipherMBS
- shared method aria_128_ofb as CipherMBS
- shared method aria_192_cbc as CipherMBS
- shared method aria_192_ccm as CipherMBS
- shared method aria_192_cfb1 as CipherMBS
- shared method aria_192_cfb128 as CipherMBS
- shared method aria_192_cfb8 as CipherMBS
- shared method aria_192_ctr as CipherMBS
- shared method aria_192_ecb as CipherMBS
- shared method aria_192_gcm as CipherMBS
- shared method aria_192_ofb as CipherMBS
- shared method aria_256_cbc as CipherMBS
- shared method aria_256_ccm as CipherMBS
- shared method aria_256_cfb1 as CipherMBS
- shared method aria_256_cfb128 as CipherMBS
- shared method aria_256_cfb8 as CipherMBS
- shared method aria_256_ctr as CipherMBS
- shared method aria_256_ecb as CipherMBS
- shared method aria_256_gcm as CipherMBS
- shared method aria_256_ofb as CipherMBS
- shared method bf_cbc as CipherMBS
- shared method bf_cfb64 as CipherMBS
- shared method bf_ecb as CipherMBS
- shared method bf_ofb as CipherMBS
- shared method BytesToKey(cipher as CipherMBS, digest as DigestMBS, Salt as MemoryBlock, InputKey as Memoryblock, IterationCount as Integer, byref OutputKey as memoryblock, byref IV as memoryblock) as boolean
- shared method camellia_128_cbc as CipherMBS
- shared method camellia_128_cfb1 as CipherMBS
- shared method camellia_128_cfb128 as CipherMBS
- shared method camellia_128_cfb8 as CipherMBS
- shared method camellia_128_ctr as CipherMBS
- shared method camellia_128_ecb as CipherMBS
- shared method camellia_128_ofb as CipherMBS
- shared method camellia_192_cbc as CipherMBS
- shared method camellia_192_cfb1 as CipherMBS
- shared method camellia_192_cfb128 as CipherMBS
- shared method camellia_192_cfb8 as CipherMBS
- shared method camellia_192_ctr as CipherMBS
- shared method camellia_192_ecb as CipherMBS
- shared method camellia_192_ofb as CipherMBS
- shared method camellia_256_cbc as CipherMBS
- shared method camellia_256_cfb1 as CipherMBS
- shared method camellia_256_cfb128 as CipherMBS
- shared method camellia_256_cfb8 as CipherMBS
- shared method camellia_256_ctr as CipherMBS
- shared method camellia_256_ecb as CipherMBS
- shared method camellia_256_ofb as CipherMBS
- shared method cast5_cbc as CipherMBS
- shared method cast5_cfb64 as CipherMBS
- shared method cast5_ecb as CipherMBS
- shared method cast5_ofb as CipherMBS
- shared method chacha20 as CipherMBS
- shared method chacha20_poly1305 as CipherMBS
- shared method CipherByName(name as string) as CipherMBS
- method CipherInit(key as memoryblock, IV as memoryblock, Encrypt as boolean) as Boolean
- shared method CipherNames as String()
- method Clear
- method Constructor
- method Control(Type as Integer, Arg as Integer, Data as Ptr)
- method DecryptInit(key as memoryblock, IV as memoryblock = nil) as Boolean
- shared method desx_cbc as CipherMBS
- shared method des_cbc as CipherMBS
- shared method des_cfb1 as CipherMBS
- shared method des_cfb64 as CipherMBS
- shared method des_cfb8 as CipherMBS
- shared method des_ecb as CipherMBS
- shared method des_ede as CipherMBS
- shared method des_ede3 as CipherMBS
- shared method des_ede3_cbc as CipherMBS
- shared method des_ede3_cfb1 as CipherMBS
- shared method des_ede3_cfb64 as CipherMBS
- shared method des_ede3_cfb8 as CipherMBS
- shared method des_ede3_ecb as CipherMBS
- shared method des_ede3_ofb as CipherMBS
- shared method des_ede3_wrap as CipherMBS
- shared method des_ede_cbc as CipherMBS
- shared method des_ede_cfb64 as CipherMBS
- shared method des_ede_ecb as CipherMBS
- shared method des_ede_ofb as CipherMBS
- shared method des_ofb as CipherMBS
- method EncryptInit(key as memoryblock, IV as memoryblock = nil) as Boolean
- method FinalizeAsMemory as memoryblock
- method FinalizeAsString as String
- method GetGCMTag(Size as Integer = 16) as MemoryBlock
- shared method idea_cbc as CipherMBS
- shared method idea_cfb64 as CipherMBS
- shared method idea_ecb as CipherMBS
- shared method idea_ofb as CipherMBS
- shared method MaxBlockLength as Integer
- shared method MaxIVLength as Integer
- shared method MaxKeyLength as Integer
- method ProcessFile(InputFile as FolderItem, OutputFile as FolderItem) as boolean
- method ProcessMemory(data as memoryblock) as MemoryBlock
- method ProcessString(data as String) as string
- shared method rc2_40_cbc as CipherMBS
- shared method rc2_64_cbc as CipherMBS
- shared method rc2_cbc as CipherMBS
- shared method rc2_cfb64 as CipherMBS
- shared method rc2_ecb as CipherMBS
- shared method rc2_ofb as CipherMBS
- shared method rc4 as CipherMBS
- shared method rc4_40 as CipherMBS
- shared method rc4_hmac_md5 as CipherMBS
- shared method rc5_32_12_16_cbc as CipherMBS
- shared method rc5_32_12_16_cfb64 as CipherMBS
- shared method rc5_32_12_16_ecb as CipherMBS
- shared method rc5_32_12_16_ofb as CipherMBS
- shared method seed_cbc as CipherMBS
- shared method seed_cfb128 as CipherMBS
- shared method seed_ecb as CipherMBS
- shared method seed_ofb as CipherMBS
- method SetGCMTag(Data as MemoryBlock)
- method SetPadding(padding as boolean)
- shared method sm4_cbc as CipherMBS
- shared method sm4_cfb128 as CipherMBS
- shared method sm4_ctr as CipherMBS
- shared method sm4_ecb as CipherMBS
- shared method sm4_ofb as CipherMBS
- property BlockSize as Integer
- property Encrypting as Boolean
- property Flags as Integer
- property HasVariableKeyLength as Boolean
- property IVLength as Integer
- property KeyLength as Integer
- property Mode as Integer
- property Name as String
- property Padding as Boolean
- property RC2KeyBits as Integer
- property RC5Rounds as Integer
- property ZeroPaddingKey as Boolean
- class DigestMBS
- shared method blake2b512 as DigestMBS
- shared method blake2s256 as DigestMBS
- method Clear
- method Constructor
- shared method DigestByName(name as string) as DigestMBS
- shared method DigestNames as String()
- method Final as memoryblock
- method FinalText as String
- shared method MD4 as DigestMBS
- shared method MD5 as DigestMBS
- shared method MDC2 as DigestMBS
- method Process(data as memoryblock)
- method Process(data as string)
- method Process(file as FolderItem) as boolean
- shared method RipeMD160 as DigestMBS
- shared method SHA1 as DigestMBS
- shared method SHA224 as DigestMBS
- shared method SHA256 as DigestMBS
- shared method SHA384 as DigestMBS
- shared method SHA3_224 as DigestMBS
- shared method SHA3_256 as DigestMBS
- shared method SHA3_384 as DigestMBS
- shared method SHA3_512 as DigestMBS
- shared method SHA512 as DigestMBS
- shared method SHA512_224 as DigestMBS
- shared method SHA512_256 as DigestMBS
- shared method shake128 as DigestMBS
- shared method shake256 as DigestMBS
- shared method sm3 as DigestMBS
- shared method whirlpool as DigestMBS
- property BlockSize as Integer
- property Name as String
- property Size as Integer
- property XOFLen as Integer
- class ECDHEMBS
- method Constructor(CurveID as Integer)
- method DeriveSecretKey(peerKey as string) as string
- method Destructor
- shared method LastError as String
- method PublicKey as string
- property CurveID as Integer
- property CurveIDName as String
- property ParamsInfo as String
- property PeerKeyInfo as String
- property PrivateKeyInfo as String
- class ECKeyMBS
- shared method BuiltInCurves(Names as Boolean = false) as Dictionary
- method Constructor
- method Copy as ECKeyMBS
- shared method CurveNameToID(Name as String) as Integer
- method ES256Sign(Data as MemoryBlock) as String
- method ES256Sign(Data as String) as String
- method ES256Verify(SignatureData as MemoryBlock, Data as MemoryBlock) as Boolean
- method ES256Verify(SignatureData as String, Data as String) as Boolean
- method Generate as Boolean
- method GetPrivateKey(Hex as Boolean) as String
- method GetPublicKey(byref x as String, byref y as String, Hex as Boolean) as Boolean
- method GetPublicKeyPoint as String
- shared method KeyByCurveName(CurveID as Integer, Generate as Boolean = true) as ECKeyMBS
- shared method OpenPrivateKey(Data as String) as ECKeyMBS
- shared method OpenPublicKey(Data as String, CurveID as Integer) as ECKeyMBS
- method PrivateKey as String
- method PublicKey as String
- method SetPrivateKey(Value as String, Hex as Boolean) as Boolean
- method SetPublicKey(x as String, y as String, Hex as Boolean) as Boolean
- method SetPublicKeyPoint(Value as String) as Boolean
- method Sign(Data as MemoryBlock) as String
- method Sign(Data as String) as String
- method Verify(SignatureData as MemoryBlock, Data as MemoryBlock) as Boolean
- method Verify(SignatureData as String, Data as String) as Boolean
- property CanSign as Boolean
- property Description as String
- property Flags as Integer
- property Size as Integer
- property Valid as Boolean
- class MD5DigestMBS
- method clear
- shared method HashFile(file as FolderItem, Hex as boolean = true) as string
- shared method HMAC(key as string, data as string) as string
- shared method MD5(data as memoryblock) as string
- shared method MD5(data as string) as string
- shared method MD5String(data as memoryblock) as string
- shared method MD5String(data as string) as string
- method Process(data as memoryblock)
- method Process(Data as string)
- property Value as string
- class OpenSSLExceptionMBS
- class PKeyMBS
- method Constructor
- method Copy as PKeyMBS
- method GenerateCertificateSigningRequest(Fields as Dictionary) as String
- method GenerateRootCertificate(Fields as Dictionary, params as SignCertificateParametersMBS = nil) as X509MBS
- shared method Open(Data as MemoryBlock, password as String = "") as PKeyMBS
- shared method Open(Data as String, password as String = "") as PKeyMBS
- method PrivateKeyData as String
- method PublicKeyData as String
- shared method SignCertificate(params as SignCertificateParametersMBS) as X509MBS
- property Bits as Integer
- property DescriptionParams as String
- property DescriptionPrivateKey as String
- property DescriptionPublicKey as String
- property Handle as Integer
- property ID as Integer
- property PrivateKey as String
- property PublicKey as String
- property Size as Integer
- property Type as Integer
- property TypeString as String
- class RC4MBS
- method Constructor(key as MemoryBlock)
- method Constructor(key as string)
- method Crypt(data as Memoryblock) as Memoryblock
- method Crypt(data as string) as string
- class RC5MBS
- method Constructor(key as MemoryBlock, rounds as Integer = 16)
- method Constructor(key as string, rounds as Integer = 16)
- method decrypt(data as Memoryblock) as Memoryblock
- method decrypt(data as string) as string
- method decryptCBC(data as Memoryblock, iv as memoryblock = nil) as Memoryblock
- method decryptCBC(data as string, iv as memoryblock = nil) as string
- method decryptCFB64(data as Memoryblock, iv as memoryblock, byref num as Integer) as Memoryblock
- method decryptCFB64(data as string, iv as memoryblock, byref num as Integer) as string
- method encrypt(data as Memoryblock) as Memoryblock
- method encrypt(data as string) as string
- method encryptCBC(data as Memoryblock, iv as memoryblock = nil) as Memoryblock
- method encryptCBC(data as string, iv as memoryblock = nil) as string
- method encryptCFB64(data as Memoryblock, iv as memoryblock, byref num as Integer) as Memoryblock
- method encryptCFB64(data as string, iv as memoryblock, byref num as Integer) as string
- method encryptOFB64(data as Memoryblock, iv as memoryblock, byref num as Integer) as Memoryblock
- method encryptOFB64(data as string, iv as memoryblock, byref num as Integer) as string
- class SHA1MBS
- method Add(data as string)
- shared method Hash(data as string) as string
- shared method HashFile(file as FolderItem, Hex as boolean = true) as string
- shared method HashText(data as string) as string
- shared method HMAC(key as string, data as string) as string
- method Reset
- method Result as string
- method ResultText as string
- class SHA256MBS
- method Add(data as string)
- shared method Hash(data as string) as string
- shared method HashFile(file as FolderItem, Hex as boolean = true) as string
- shared method HashText(data as string) as string
- shared method HMAC(key as string, data as string) as string
- method Reset
- method Result as string
- method ResultText as string
- class SHA3MBS
- method Add(data as memoryblock)
- method Add(data as string)
- method Constructor(Rate as UInt32, capacity as UInt32)
- shared method Hash(data as string, Rate as UInt32, capacity as UInt32, outputLength as Integer) as string
- shared method HashText(data as string, Rate as UInt32, capacity as UInt32, outputLength as Integer) as string
- method Reset(Rate as UInt32, capacity as UInt32)
- method Result(outputLength as Integer) as string
- method ResultText(outputLength as Integer) as string
- class SHA512MBS
- method Add(data as string)
- shared method Hash(data as string) as string
- shared method HashFile(file as FolderItem, Hex as boolean = true) as string
- shared method HashText(data as string) as string
- shared method HMAC(key as string, data as string) as string
- method Reset
- method Result as string
- method ResultText as string
- class SignCertificateParametersMBS
- property AuthorityKeyIdentifier as String
- property BasicConstraints as String
- property CSR as String
- property expireAfterTime as Integer
- property ExtendedKeyUsage as String
- property KeyUsage as String
- property NameConstraints as String
- property RootCert as X509MBS
- property RootKey as PKeyMBS
- property serialNumber as Integer
- property SerialNumberHex as String
- property SubjectAltName as String
- property SubjectKeyIdentifier as String
- class UUIDMBS
- shared method randomUUID as UUIDMBS
- shared method UUID as UUIDMBS
- shared method UUIDv7 as UUIDMBS
- shared method Validate(UUID as string, mode as Integer = 0, requiredVersion as Integer = 0) as string
- method ValueFormattedString(WithBrackets as Boolean = true) as String
- method ValueHexString as String
- method ValueMemory as Memoryblock
- method ValueString as String
- property Lasterror as Integer
- property Valid as Boolean
- class X509MBS
- shared method CheckCertificates(rootCertificates() as X509MBS, certificate as X509MBS, intermediates() as X509MBS = nil, Flags as Integer = 0) as Boolean
- shared method CheckCertificates(rootCertificates() as X509MBS, certificate as X509MBS, intermediates() as X509MBS, Flags as Integer, byref ErrorCode as Integer, byref ErrorMessage as String) as Boolean
- method Constructor
- method Copy as X509MBS
- method Data as String
- shared method Open(Data as MemoryBlock) as X509MBS
- shared method Open(Data as String) as X509MBS
- shared method ReadFromPkcs12(Data as String, Pass as String, byref PKey as PKeyMBS, byref Cert as X509MBS, byref certs() as X509MBS) as Boolean
- shared method ReadFromPkcs7(Data as String, Pass as String, byref certs() as X509MBS) as Boolean
- method Verify(PublicKey as PKeyMBS) as Integer
- property AuthorityKeyIdentifier as String
- property BasicConstraints as String
- property CertificatePolicies as String
- property Description as String
- property ExtendedKeyUsage as String
- property ExtendedKeyUsageValue as Integer
- property Handle as Integer
- property IssuerAlternativeName as String
- property IssuerName as Dictionary
- property KeyUsage as String
- property KeyUsageValue as Integer
- property Name as String
- property NameConstraints as String
- property PolicyConstraints as String
- property PolicyMappings as String
- property PublicKey as PKeyMBS
- property SerialNumber as String
- property SubjectAlternativeName as String
- property SubjectKeyIdentifier as String
- property SubjectName as Dictionary
- property ValidNotAfter as Date
- property ValidNotAfterDateTime as DateTime
- property ValidNotBefore as Date
- property ValidNotBeforeDateTime as DateTime
- property Version as Integer
- class Argon2MBS
- Class Extensions
- class Memoryblock
- method CRC_32ContMBS(offset as Integer, numBytes as Integer, prevCRC as UInt32) as UInt32
- method CRC_32MBS(offset as Integer, numBytes as Integer) as UInt32
- method CRC_CCITTContMBS(offset as Integer, numBytes as Integer, prevCRC as UInt32) as UInt32
- method CRC_CCITTMBS(offset as Integer, numBytes as Integer) as UInt32
- method CRC_DillonMBS(bitWidth as Integer, offset as Integer, numBytes as Integer) as String
- class Memoryblock
- Modules
- module BCryptMBS
- method BCrypt(Pass as String, Salt as String) as String
- method BCryptSalt(Rounds as Integer) as String
- method Verify(Pass as String, Hash as String) as Boolean
- module OpenSSLMBS
- method CipherNames as String()
- method DigestNames as String()
- method ErrorString(ErrorCode as Integer) as string
- method GeneratePrivateKey(Bits as Integer = 4096, Exp as Integer = 65537, Password as string = "", Algorithm as string = "") as string
- method GetPublicKey(PrivateKey as String, PrivateKeyPassword as string = "") as string
- method OpenSSLVersion as String
- method PKCS7Sign(flags as Integer, InputData as string, SignKey as string, PrivateKey as String, PrivateKeyPassword as string, intermediaCertsData() as string, OutputBinary as boolean) as string
- method PKCS7SignData(Certificate as X509MBS, PrivateKey as PKeyMBS, certs() as X509MBS = nil, data as string, flags as Integer = 0) as string
- method PKCS7SignedData(DataP7M as String) as String
- method ProviderNames as String()
- method RandomBytes(count as Integer) as MemoryBlock
- method RandomBytesString(count as Integer) as String
- method RSAPrivateDecrypt(data as string, PrivateKey as string, padding as Integer = 1, Password as string = "") as String
- method RSAPrivateEncrypt(data as string, PrivateKey as string, padding as Integer = 1, Password as string = "") as String
- method RSAPublicDecrypt(data as string, PublicKey as string, padding as Integer = 1, Password as string = "") as String
- method RSAPublicEncrypt(data as string, PublicKey as string, padding as Integer = 1, Password as string = "") as String
- method SignData(data as string, key as string, Password as string = "") as string
- method SignData(data as string, key as string, Password as string = "", Algorithm as Integer) as string
- method SignRSAPSS(data as string, key as string, Password as string = "", Algorithm as Integer, SaltLength as Integer = -1) as string
- method SMimePKCS7Decrypt(InputData as string, Certificate as X509MBS, SignKey as PKeyMBS) as String
- method SMimePKCS7Encrypt(InputData as string, Certificate as X509MBS) as String
- method SMimePKCS7Sign(InputData as string, Certificate as X509MBS, SignKey as PKeyMBS) as String
- method SMimePKCS7Verify(InputData as string, Certificate as X509MBS) as String
- method VerifyData(data as string, Signature as string, Key as string, Password as string = "") as boolean
- method VerifyData(data as string, Signature as string, Key as string, Password as string = "", Algorithm as Integer) as boolean
- method VerifyRSAPSS(data as string, Signature as string, Key as string, Password as string = "", Algorithm as Integer, SaltLength as Integer = -1) as boolean
- module PassSignerMBS
- method signPass(Pass as folderitem, CertSuffix as String, Output as folderitem, Zip as boolean = true) as boolean
- method verifyPassSignature(pass as folderitem) as Boolean
- module TwofishMBS
- method DecryptCBC(Key as MemoryBlock, InputData as MemoryBlock, IV as MemoryBlock) as MemoryBlock
- method DecryptCBC(Key as String, InputData as String, IV as String) as String
- method DecryptECB(Key as MemoryBlock, InputData as MemoryBlock) as MemoryBlock
- method DecryptECB(Key as String, InputData as String) as String
- method EncryptCBC(Key as MemoryBlock, InputData as MemoryBlock, IV as MemoryBlock) as MemoryBlock
- method EncryptCBC(Key as String, InputData as String, IV as String) as String
- method EncryptECB(Key as MemoryBlock, InputData as MemoryBlock) as MemoryBlock
- method EncryptECB(Key as String, InputData as String) as String
- module BCryptMBS
- Examples
- /Cameras/NikonCamera/Nikon Live View and Capture
- /Images/JPEG/JPEG 2000 Test
- /Images/LCMS2/Convert Lab Tiff to SRGB JPEG
- /MacBase/NSURLDownload/NSURLDownload Example
- /MacCF/Darwin Memory Statistics
- /MacCF/MIDI/MIDI Input Synth
- /MacFrameworks/Image Capture/Image Capture Views
- /MacOSX/AUPlayer
- /SQL/SQLite Blob test
- /Picture/Picture blending/blend with plugin
- Blog Entries
- MBS Xojo Plugins, version 26.1pr1
- MBS Xojo Plugins, version 25.2pr3
- MBS Xojo Plugins, version 23.4pr1
- MBS Xojo Plugins in version 22.3
- MBS Xojo / Real Studio plug-ins in version 13.4
- MonkeyBread Software Releases the MBS Real Studio plug-ins in version 13.1
- Encryption Interoperability
- MBS Real Studio Plugins, version 12.1pr1
- MBS Real Studio Plugins, version 12.0fc1
- MBS REALbasic plug-ins version 9.4
Release notes
- Version 26.1
- Added MD4 method to DigestMBS class.
- Added XOFLen property to DigestMBS class.
- Fixed CalculateCRC16StringMBS and CalculateCRC16MemoryMBS to work better with reflected input, broken in 26.0.
- Improved DigestMBS class to raise OpenSSLExceptionMBS in case of failure instead of simply returning an empty hash.
- Version 26.0
- Added SaltLength parameter and related constants for VerifyRSAPSS and SignRSAPSS methods in OpenSSLMBS module.
- Fixed CalculateCRC16StringMBS and CalculateCRC16MemoryMBS to work better with reflected input.
- Version 25.5
- Added more properties to X509MBS class for debugging.
- Added SignCertificateParametersMBS class.
- Added SignRSAPSS and VerifyRSAPSS to OpenSSLMBS module for 2048-bit RSA electronic signature with PSS padding and SHA-256.
- Added UUIDv7 function to UUIDMBS class.
- Changed GenerateRootCertificate method in PKeyMBS class to take SignCertificateParametersMBS object for parameters.
- Changed SignCertificate method in PKeyMBS class to take SignCertificateParametersMBS for all the parameters.
- Fixed bug in password passing for GetPublicKey and GeneratePrivateKey function in OpenSSLMBS module.
- Version 25.4
- Changed Serialnumber parameter to Int64 for SignCertificateSigning and GenerateRootCertificate methods in PKeyMBS class.
- Version 25.3
- Added ProviderNames function to OpenSSLMBS module.
- Added SignCertificateSigning, GenerateRootCertificate and GenerateCertificateSigningRequest methods for PKeyMBS class.
- Version 25.2
- Rewrote parts of CalculateTOTPMBS, broken with Xcode upgrade.
- Version 25.1
- Version 24.3
- Improved error messages for exceptions raised in OpenSSLMBS module to contain more details.
- Improved X509MBS.Open to read binary certificates, too.
- Version 23.5
- Improved UUIDMBS.randomUUID to be a bit more random.
The items on this page are in the following plugins: MBS Cameras Plugin, MBS Compression Plugin, MBS Encryption Plugin, MBS Images Plugin, MBS MacBase Plugin, MBS MacCF Plugin, MBS MacExtras Plugin, MBS MacFrameworks Plugin, MBS MacOSX Plugin, MBS Picture Plugin, MBS SQL Plugin, MBS Util Plugin.