--- title: Sample digest token implementations description: Here are several samples of creating a digest token. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/platform-security/authentication/r\_SampleImplements.html release: australia product: Authentication classification: authentication topic_type: reference last_updated: "2026-03-12" reading_time_minutes: 1 breadcrumb: [Digest token authentication, Token based authentication \(User logins\), Authentication, Access Management] --- # Sample digest token implementations Here are several samples of creating a digest token. |Digest built with|Secret key value|Hash method|Example| |-----------------|----------------|-----------|-------| |Java|32 and more characters|SHA256|Sample Java Digest Algorithm for Encryption| |C|Value of sharedKey parameter|Value of strEncryptionMethod parameter \(SHA256 or MD5\)|Sample C|