//[docs](../../index.md)/[dev.inmo.tgbotapi.utils.passport](index.md) # Package dev.inmo.tgbotapi.utils.passport ## Types | Name | Summary | |---|---| | [AESDecryptor](-a-e-s-decryptor/index.md)| [jvm]
Content
class [AESDecryptor](-a-e-s-decryptor/index.md)(**key**: , **iv**: [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)) : [Decryptor](-decryptor/index.md)


| | [Decryptor](-decryptor/index.md)| [common]
Content
interface [Decryptor](-decryptor/index.md)


| ## Functions | Name | Summary | |---|---| | [createDecryptor](create-decryptor.md)| [jvm]
Content
fun [EndDataCredentials](../dev.inmo.tgbotapi.types.passport.credentials/-end-data-credentials/index.md#%5Bdev.inmo.tgbotapi.types.passport.credentials%2FEndDataCredentials%2F%2F%2FPointingToDeclaration%2F%5D%2FExtensions%2F745855401).[createDecryptor](create-decryptor.md)(): [Decryptor](-decryptor/index.md)
fun [Pair](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-pair/index.html)<, >.[createDecryptor](create-decryptor.md)(): [Decryptor](-decryptor/index.md)


| | [decryptData](decrypt-data.md)| [jvm]
Content
fun [EndDataCredentials](../dev.inmo.tgbotapi.types.passport.credentials/-end-data-credentials/index.md#%5Bdev.inmo.tgbotapi.types.passport.credentials%2FEndDataCredentials%2F%2F%2FPointingToDeclaration%2F%5D%2FExtensions%2F745855401).[decryptData](decrypt-data.md)(bytes: ):


| | [decryptFile](decrypt-file.md)| [jvm]
Content
fun [FileCredentials](../dev.inmo.tgbotapi.types.passport.credentials/-file-credentials/index.md#%5Bdev.inmo.tgbotapi.types.passport.credentials%2FFileCredentials%2F%2F%2FPointingToDeclaration%2F%5D%2FExtensions%2F745855401).[decryptFile](decrypt-file.md)(fileBytes: [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)):
suspend fun [FileCredentials](../dev.inmo.tgbotapi.types.passport.credentials/-file-credentials/index.md#%5Bdev.inmo.tgbotapi.types.passport.credentials%2FFileCredentials%2F%2F%2FPointingToDeclaration%2F%5D%2FExtensions%2F745855401).[decryptFile](decrypt-file.md)(bot: , passportFile: [PassportFile](../dev.inmo.tgbotapi.types.passport.encrypted/-passport-file/index.md)):


| | [decryptWithPKCS8PrivateKey](decrypt-with-p-k-c-s8-private-key.md)| [jvm]
Content
fun [EncryptedCredentials](../dev.inmo.tgbotapi.types.passport.credentials/-encrypted-credentials/index.md#%5Bdev.inmo.tgbotapi.types.passport.credentials%2FEncryptedCredentials%2F%2F%2FPointingToDeclaration%2F%5D%2FExtensions%2F745855401).[decryptWithPKCS8PrivateKey](decrypt-with-p-k-c-s8-private-key.md)(privateKey: [PrivateKey](https://docs.oracle.com/javase/8/docs/api/java/security/PrivateKey.html)): [DecryptedCredentials](../dev.inmo.tgbotapi.types.passport.credentials/-decrypted-credentials/index.md)
fun [EncryptedCredentials](../dev.inmo.tgbotapi.types.passport.credentials/-encrypted-credentials/index.md#%5Bdev.inmo.tgbotapi.types.passport.credentials%2FEncryptedCredentials%2F%2F%2FPointingToDeclaration%2F%5D%2FExtensions%2F745855401).[decryptWithPKCS8PrivateKey](decrypt-with-p-k-c-s8-private-key.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [DecryptedCredentials](../dev.inmo.tgbotapi.types.passport.credentials/-decrypted-credentials/index.md)


| | [doInDecryptionContextWithPKCS8Key](do-in-decryption-context-with-p-k-c-s8-key.md)| [jvm]
Content
inline fun <[T](do-in-decryption-context-with-p-k-c-s8-key.md)> [PassportData](../dev.inmo.tgbotapi.types.passport/-passport-data/index.md#%5Bdev.inmo.tgbotapi.types.passport%2FPassportData%2F%2F%2FPointingToDeclaration%2F%5D%2FExtensions%2F745855401).[doInDecryptionContextWithPKCS8Key](do-in-decryption-context-with-p-k-c-s8-key.md)(pkcs8Key: [PrivateKey](https://docs.oracle.com/javase/8/docs/api/java/security/PrivateKey.html), expectedNonce: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? = null, crossinline block: [SecureData](../dev.inmo.tgbotapi.types.passport.decrypted/-secure-data/index.md).() -> [T](do-in-decryption-context-with-p-k-c-s8-key.md)): [T](do-in-decryption-context-with-p-k-c-s8-key.md)
inline fun <[T](do-in-decryption-context-with-p-k-c-s8-key.md)> [PassportData](../dev.inmo.tgbotapi.types.passport/-passport-data/index.md#%5Bdev.inmo.tgbotapi.types.passport%2FPassportData%2F%2F%2FPointingToDeclaration%2F%5D%2FExtensions%2F745855401).[doInDecryptionContextWithPKCS8Key](do-in-decryption-context-with-p-k-c-s8-key.md)(pkcs8Key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), expectedNonce: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? = null, crossinline block: [SecureData](../dev.inmo.tgbotapi.types.passport.decrypted/-secure-data/index.md).() -> [T](do-in-decryption-context-with-p-k-c-s8-key.md)): [T](do-in-decryption-context-with-p-k-c-s8-key.md)


|