Page History
...
The Options parameter is dependent upon the algorithm chosen. Currently, only the BASE64 algorithm supports a single option. By default, the BASE64 algorithm inserts CRLFs in the encoding per industry standards. Setting Options to 0 omits the CRLFs. SRP_Decode has no such Options parameter as it is smart enough to ignore CRLFs whether or not they are there.
Example
Code Block |
---|
* encode some binary data using default (BASE64) Data = \D1D2D3D4\ EncodedData = SRP_Encode(Data) |
Code Block |
---|
* HEX encode some binary data Data = \D1D2D3D4\ EncodedData = SRP_Encode(Data, "HEX") |
...
Code Block |
---|
* BASE32 encode some binary data Data = \D1D2D3D4\ EncodedData = SRP_Encode(Data, "BASE32") |
...
Code Block |
---|
* BASE64 encode some binary data Data = \D1D2D3D4\ EncodedData = SRP_Encode(Data, "BASE64") |