hmac-sha256 encryption

Is there a function or a script in Sage X3 4gl language, that would allow me to encrypt a string with sha256 hash and a secret key? In other languages it is usually called hmac-sha256.