FromString digests the string input and returns a Digest.
(s string)
| 172 | |
| 173 | // FromString digests the string input and returns a Digest. |
| 174 | func (a Algorithm) FromString(s string) Digest { |
| 175 | return a.FromBytes([]byte(s)) |
| 176 | } |
| 177 | |
| 178 | // Validate validates the encoded portion string |
| 179 | func (a Algorithm) Validate(encoded string) error { |