Skip to content

deviint/onlyfans-dynamic-rules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

If you use this, please give this repo a star to keep it live!

This free version is maintained and updated a few days after OFAPI subscribers have received them.


Direct link: https://raw.githubusercontent.com/deviint/onlyfans-dynamic-rules/main/dynamicRules.json

Usage (JavaScript)

const time = +new Date()
const url = new URL(fullUrl)
const msg = [
    dynamicRules["static_param"],
    time,
    url.pathname + url.search,
    userId
].join("\n")
const shaHash = sha1(msg);
const hashAscii = Buffer.from(shaHash, 'ascii');

const checksum = dynamicRules["checksum_indexes"].reduce((result, value) => result + hashAscii[value], 0) + dynamicRules["checksum_constant"];
const sign = [dynamicRules["start"], shaHash, Math.abs(checksum).toString(16), dynamicRules["end"]].join(":")
// output: {sign, time}

For OnlyFans API inquiries, OnlyFans consulting, OnlyFans product/service advice email [email protected] . I have extensive knowledge of all things related to OnlyFans' inner workings and API.

@onlyfansrich @onlyfansrich