TripleDESCryptoServiceProvider.Padding Propriedade
Definição
Obtém ou define o modo de preenchimento usado no algoritmo simétrico.Gets or sets the padding mode used in the symmetric algorithm.
public:
virtual property System::Security::Cryptography::PaddingMode Padding { System::Security::Cryptography::PaddingMode get(); void set(System::Security::Cryptography::PaddingMode value); };
public override System.Security.Cryptography.PaddingMode Padding { get; set; }
member this.Padding : System.Security.Cryptography.PaddingMode with get, set
Public Overrides Property Padding As PaddingMode
Valor da propriedade
O modo de preenchimento usado no algoritmo simétrico.The padding mode used in the symmetric algorithm. O padrão é PKCS7.The default is PKCS7.
Exceções
O modo de preenchimento não é um dos valores PaddingMode.The padding mode is not one of the PaddingMode values.
Comentários
A maioria das mensagens de texto sem formatação não consiste em um número de bytes que preenche completamente os blocos.Most plain text messages do not consist of a number of bytes that completely fill blocks. Geralmente, não há bytes suficientes para preencher o último bloco.Often, there are not enough bytes to fill the last block. Quando isso acontece, uma cadeia de caracteres de preenchimento é adicionada ao texto.When this happens, a padding string is added to the text. Por exemplo, se o tamanho do bloco for 64 bits e o último bloco contiver apenas 40 bits, serão adicionados 24 bits de preenchimento.For example, if the block length is 64 bits and the last block contains only 40 bits, 24 bits of padding are added. Consulte a PaddingMode enumeração para obter uma descrição de modos específicos.See the PaddingMode enumeration for a description of specific modes.