Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Hisham Mubarak HishamMubarak

🎯
Focusing
View GitHub Profile
@HishamMubarak
HishamMubarak / decrypt.js
Last active Sep 3, 2022
node js code snippet to decrypt AES-GCM-256bit encrypted utm_content provided by facebook app ads install referral provided within install referrer content
View decrypt.js
const crypto = require('crypto')
const decryptData = async (installReferrerString, decryptionKey) => {
try {
const ALGORITHM = 'aes-256-gcm'
// Step 1: Decode the URI
const decodedUri = decodeURIComponent(installReferrerString)
View index.js
import { AppRegistry } from 'react-native';
import App from './App';
AppRegistry.registerComponent('weatherApp', () => App);
View App.js
import React, { Component } from 'react';
import { Platform, StyleSheet, Text, View } from 'react-native';
import AppNavigator from './src/config/routes'
export default class App extends Component {
render() {
return (
<AppNavigator />
);
}
View routes.js
import React from 'react'
import { TabNavigator, StackNavigator, TabBarBottom } from 'react-navigation';
import Splash from '../screens/Splash'
import Login from '../screens/Login'
import Home from '../screens/Home'
import Weather from '../screens/Weather'
import Details from '../screens/Details'
import Average from '../screens/Average'
import AverageGraph from '../screens/AverageGraph'
@HishamMubarak
HishamMubarak / reset.html
Created May 25, 2017
Password Reset Form
View reset.html
<script>
function confirm() {
var pass1 = document.getElementById("passOne").value;
var pass2 = document.getElementById("passTwo").value;
if (pass1 != pass2) {
document.getElementById("passOne").style.borderColor = "#E34234";
document.getElementById("passTwo").style.borderColor = "#E34234";
alert("Password Don't Match");
} else {
alert("Passwords Match");