Skip to content

class Tourmaline::EncryptedCredentials
inherits Reference #

Describes data required for decrypting and authenticating EncryptedPassportElement. See the Telegram Passport Documentation for a complete description of the data decryption and authentication processes.

Included modules

JSON::Serializable

Constructors#

.new(data, hash, secret) #

View source

.new(pull : JSON::PullParser) #

View source

Methods#

#data : String #

Base64-encoded encrypted JSON-serialized data with unique user's payload, data hashes and secrets required for EncryptedPassportElement decryption and authentication

View source

#data=(data : String) #

Base64-encoded encrypted JSON-serialized data with unique user's payload, data hashes and secrets required for EncryptedPassportElement decryption and authentication

View source

#hash : String #

Base64-encoded data hash for data authentication

View source

#hash=(hash : String) #

Base64-encoded data hash for data authentication

View source

#secret : String #

Base64-encoded secret, encrypted with the bot's public RSA key, required for data decryption

View source

#secret=(secret : String) #

Base64-encoded secret, encrypted with the bot's public RSA key, required for data decryption

View source