MASTG-KNOW-0066 CryptoKit
PreviousMASVS-CRYPTO: 暗号NextMASTG-KNOW-0067 CommonCrypto, SecKey および Wrapper ライブラリ (CommonCrypto, SecKey and Wrapper libraries)
Last updated
Last updated
let encryptionKey = SymmetricKey(size: .bits256)let rawString = "OWASP MTSG"
let rawData = Data(rawString.utf8)
let hash = SHA512.hash(data: rawData) // Compute the digest
let textHash = String(describing: hash)
print(textHash) // Print hash text