StackHub Bulletin BoardAdvertise your announcements here!

afAxonatorExt

Encrypts and obfuscates Axon source code
afAxonatorExtAxon funcs

Registered StackHub users may elect to receive email notifications whenever a new package version is released or a comment is posted on the forum.

There are 4 watchers.

v0.9.20

axonateFile
axonateFile(axonFile, passPhrase, keyFunc: null, options: null)

Encrypts the given Axon trio file by obfuscating the src fields.

passPhrase is a seed string that's used to generate the actual secretKey used to encrypt the axon source code.

Example:

axonateFile(`io/funcs.trio`, "<passPhrase>")

Returns a Dict which contains, amongst other fields, the secret key needed to run the functions.

By default, the encrypted source contains the secretKey which is fine for obfuscation and general purpose use. Alternatively a keyFunc may be passed in. The keyFunc should either be a Str of Axon code, or a Fn that returns a Str of Axon code, that when executed returns the secretKey. Also see axonatorStackHubKeyFunc.

If keyFunc is an Axon Fn it is called with two arguments: fnName and secretKey.

options defaults to null and is not used at this time.

Fantom signature:
@Axon static Dict axonateFile(Uri axonFile, Str passPhrase, Obj? keyFunc := null, Dict? options := null)
axonateFunc
axonateFunc(funcRec, passPhrase, keyFunc: null, options: null)

Encrypts the given function record by obfuscating the src field.

passPhrase is a seed string that's used to generate the actual secretKey used to encrypt the axon source code.

Example:

{func, name:"fnName", src:"()=>69"}.axonateFunc("<passPhrase>")

Returns a Dict which contains, amongst other fields, the secret key needed to run the function.

By default, the encrypted source contains the secretKey which is fine for obfuscation and general purpose use. Alternatively a keyFunc may be passed in. The keyFunc should either be a Str of Axon code, or a Fn that returns a Str of Axon code, that when executed returns the secretKey. Also see axonatorStackHubKeyFunc.

If keyFunc is an Axon Fn it is called with two arguments: fnName and secretKey.

options defaults to null and is not used at this time.

Fantom signature:
@Axon static Dict axonateFunc(Dict funcRec, Str passPhrase, Obj? keyFunc := null, Dict? options := null)
axonatorStackHubKeyFunc
axonatorStackHubKeyFunc(stackHubKey, stackHubVal)

Returns a keyFunc function that finds a StackHub licence that matches the given key and value, and returns the axonatorKey property from that licence.

stackHubKey

stackHubVal

product

a matching product ID, example:. xxxx-xxxx productName

package

a simple package version, example:. pkg 1.0

The returned keyFunc can only be used in axonate functions.

Example:

keyFunc : axonatorStackHubKeyFunc("product", "xxxx-xxxx productName")
axonate : axonateFile(`io/funcs.trio`, "<passPhrase>", keyFunc)
Fantom signature:
@Axon static Obj axonatorStackHubKeyFunc(Str stackHubKey, Str stackHubVal)
Published by Fantom Factory

Products & Services by Fantom Factory

Packages by Fantom Factory

Commercial packages

Free packages