-
Notifications
You must be signed in to change notification settings - Fork 3
/
decrypt.js
executable file
·9 lines (7 loc) · 10.5 KB
/
decrypt.js
1
2
3
4
5
6
7
8
9
const crypto = require('crypto')
const decipher = crypto.createDecipher('aes-256-cbc', 'grand freeze sometimes subject')
const text =
'd4dec1be61d28091f01f3536a77d2d7308a67c09393ddedecf6c7874503181400604c111e6d2b71d8145c9c0c91b957e8b3a2036bab39d6003098dafc527ffa7fec82956b482146c555ab4f1cad779d595f62b00b8026f02ec9324dfee37cbc825c2c768924d2139465c396d396841a08439f50bf7dd96405fa4b9688d47fc6af4b90251c40af486051e5369dcc725d54454d58ac1283041bc1859caf53d1fa12f924c7275cdab474f9974d8b14ea07258dcd4e2d8747214a15034d869c430f0d46b17cdeb5d259c65596223f67a165692be356d05dc2718735adb247d5b77ba671b0826e320c2f6f65ffad6220bc07f05609988b1614e541c37044dff66ed1840f80b5ead64de443382498c85b05584ea4ed11dd92d29049aa63141d61c2893c2a45382335fe94971f96b4fd629f97184beceb99912a535f126cddcccb24679401352278ef8b7d6237a3f29b30381c1d3eef3c3f6428dec5e52ccb3f8cd4061e22a74202d4a4afe08a2b80af83bdcfb241244075475b6baaaa07bc0e3e7c4387321650c00cd462330cdfcd7e2823d6fa45590cc19e7a442e3b0701114c82ea0f1e259a78f13c7b4d37b2f768c0c9c5dfbefd23be0288b5a4ca5d513a0dd813cfe20de3b324a7e25dfea3e22fd419cf6171340d3bafafcfbee9aa6e59b0796d72ba6985d5b8f35cdc20b6771a392729d336905a4b3996364d784ab5c47cbc6f7fec3c78418c5b97de712c3362b6053585f36c6acd07354812a90909bbe5faf74272394e8e3aaead6fd10613dcc76811b7393018e0369b5c31d2e765c0eee9c249f29dd127ffded4be5f4fbce5b3d1b813757fba024e1e783c3d5d785c44a3e432ebb0560e082a8a6232d34179571d79faa1d30f0d7942f6290131351e45049d172d508ca6c5906a4cb348f1c350e90fe9cd4a2b9e765c48c6ffdaaa96ec2e23f13641fac5e5582c04a52f4b7823d6580125cb094844d9c72aab2c61ebd16478cf7324fa40d937b3c9557a508328b65367486d6a2394088a19f701d4741ff1f44877c6fe45bde1474e6450766ae9f5957252234d6043d86bb04fad233815735ba47e6275fcdcfd45e69f429803335489687af689c575e5f223ccff793f0e405840bc2aa427609e0618f23b4ea2c66303de2ab7403849f53f69b53fb9fd34ea88207e3a94e846951ea78051dc8bd97c3470bdff772f35bb18f825f74dfa9c0523774ff2aecb1132d4033bbf060c97168296c4ea4555bb04457a446d325b51e9f3ed43b249c38eb8dec114c0392163e112120427239eb4e119412a7d683eee774046838c50bb844a46b7ce3cda34e270f6b7f4fc0f1b0b9ec53b7f1794ac59b9a1c0a21ad76e9803c5fd9a6d956753206631a052c31feead4a0aae44ddd1b9f1753e1565efe50784e8f5a9d83337c898a51838643ad373a3b14879773773bf53851ef82f98eb92ddc1ea806ed81bd2690157a3e0cadd42e60ae722a40003b2bd7dab4b8a3641aec299a115c20d19d756cd5259f7a34f95579e06b1c8553f5141faeb548012c0b8d64ea4dd2d79773ef42d5e55ef6db3a36eb96dea5ddad7ec9545133840ba8227dfe866f4ebdd5a4929b220633c59570d6b82a72eb31cedc533503d0c213a0b58414dc9d2f12c3d4b5d7c325e091ff4f435403bf59f1abc186f73d10220bc06145cca7aeb50b8585831cb6879f00dcd261a6a2f2a1c3b8a812749d8dbbc85aa9d10a0fb335bed85ab28e9d6d58921a8c05f0d4292959657cdc0161db4c9d406a400649cc86fb4290620d4e828f4b00242fcb78d996232cb9b5669c4b69b7ecad2023cd6b465374d815f24e6e1056473c464c04040125a10c0f3b4c75372829442f46c0e6abb7cf5d09a6785e557a82aa920847d89931f3fc48b4dc92268ffccce351205c9421d5c0214820cb39274cb5cff9607650a425082b50e49cf859e2ec884cf7c9a67c6b9a2edc6f106008e2fdb285eb6234f74c292532e1edf54aa72003d7e2ddf79a26e7d50a2e720776a5f981bbd70a4fda30af15f821af7421df7f349e40c763bbb03ba0d261eb8da9dc3bdcb3500c57af288b5aa5779e0ea4841c6f863580b0304e4804cb5836769b7b706d399a50dfab325716a8811b6701040707a0e280194e7018e525bb5e210af90da4f9a38f624300ea27f9724063a88f54652db85adbe463e8a99e96b7b98588007033d42cb42badca85b7f0638eb8b59f847f893e15287a749dffc5bb17c7e02b9b2883f55276dbc0660302c385fbe2eb3f9db0f55b074015c756b27e141218e8f011456ccbb85d63662a6859ff6b6c97438f910d3ed3bef7b6c525068bffab5d3c239fdfe34f622275231c68aa08f7b095c1876202fcfe9e23b4513d4da14334563387ee34656c67de5c1dc1cf2ea79371d89725745eefbc0d0dc3ba0eb3a2c7ee5d3be8f718038b7b1d5179c29fb33ced7f0558b100aca5d7c52dd2c32fa889a7c94776344b2920fe67ee651207660ac456b61e366eac1021fa8bb528f8245999b34e07635e8da268707c63282c1478ec3d660f4e2da45aaf1a78c45ac10a7436dde0c7761bd691f5d6397c1dff878b289d63d21a8e66662720d526ece9e6cb58987f4af2ba7cb5c569f6b8eb0ab8a78cce258926932c0b0e230aa536b4e3d87d733c1566371899b8711ad6a487176f8aa0e4b292229ab0afe863b6c87e55de3dd596c5ad9a5effad06341fd0714987eb8873691f0a9532d5abb804acc7fe49841fc9e9146f55bd4c353c965be2108f2a0d3dc0e49481f75679513e5a7353bb78fc3dcac3088676ab6b40cfb0cd79a80d17d81fdc488020f38ab255100b0cd65a3febd47b3a7c1f9df5afedc61f0a40016f656d603dc700d44636ce0d3293b5ed84b891caa1dc2413a3b68211f2b93c11730d8294515972a28e73167b164b6c482c99d873837b84f26c37fb5fa8c6a14084ec3f115034acbea2813ed70f9599a180b2094b1a9aee305e2ba30646542faf53cc4635303a2db775bb4c4683d6cc1c379b9d97a1863df50a7736fa84000d6786d346dc192d7f15ff2b5e4deff03a7186cd8018c3e16fd834a0d034a2150ce61819cd941f8ba39f22755fc3994604310cb087dbca606bad1439a2a9ad525b70aedf4fd524bcbff9421b3f22607eef6ba35c945d236de54928e14b4a162f30b02809089b6f5fe5769b96e7000a94b581c9625e6ec5a9362b927042d28a547bd58c5fe99e92bdbac966cf4d01fa9ec2b26b34e70d786c940e8a6a1d29b514d03948411313b35017a32c0a58467696d27dee05531fe9d2ab85e2183cebada412c94bc2fd9cbb5d8b5123ce78d06ac3b2a27a46639d67478efc2f5a95b3d16d243aa5b039610bb9fce93dcc94b85610a3e53c7eef0a23cb854e5c34c13935c1209cae507273189fbd148015163263a4a67a304e3fe531c36b6063aef90e6b69cf98b03d11bbf330636517ca9c7ecf0c4e4293095e227ee623936d2ebe423bcdf32dd6d70b2768ef12ca3a7290fc27e288a0224f010c044d06886c2a34951fdb6fbc09d5097d38a954f0482ae2a35378f7987bb1517d097aa5e2b33a3aabaaea0aa04777a71c463246a32eba934c15dc671613b5d772a0539c513edcfe203359bdf53bcc5d2da6514d876db69b4fe0a24b974f687acad2bfeca340fd8a439d1b318ad3487450709b2d772ac4a7250fdb522dc18b42f4917f3f44d362f0374a83a3bb3d879107b36909c9e506cc0a54265fa396b7384f2136dd242a65c48f78665b69d8b851ef921fae882d0251fb0216daed4757f1f9028e674a795a3ba4a47f50f4f64bd278f54b40a6e220ee04c4bdc4bcb531b7ace9c7ab67d0f6b6ee67adcc5fe0208cc8d932ce9b38bf9ac30e59cf08f3444de406e43ae469a237ad91c29a66a55e685700a7a310cdb9f0c4e4c16d8238d92970d298b5aa0343e4ab360210a472a69d1d3c7993ef3a429df4d47fd87a6d313f8013a5be8b15d9fdd74025dca4e40af3e28197e4cfb414feb3c10d39775ae083c893eed14bbc9d1f02327c99d74d190d402022fa4a084f7d096c1e759190d2f3d03089ed164c5b8258c17eca89ae5d19486193374d0f41b231edc35de435f14be1230a84c0240dc44e4a6a15207f4fa9ff19099bece44ac65df14ec646b7498171ce3cb5935bed091da185f326b64e663c1d1d2886a8497df07e023345572cd39ee5b2c5233a2fb2e3cee4c35daad09fa09910332a3f7c8046979efb36bdf8c88506255b5cf73e4e21b29888b18edf32a18a207f95562e68188f56a57b733c1e9076c73fc0b10234c2b0666ea29a8a010e7e80b966f321a22eed2aee38e471119f26c8a51c5b2fa2fe3c2b7e1562d1afc070496903bd4b50ebf59489c41dbfb4a31c971fdfe5810ae86a19dae522f2feb80d3943988d7a0ca1bdee6c723fe6663aa8543b7f398bc145717e648fd080d09896472cb318427bbad201d01663c77d0895d2243cb2d4285cbf7c1eb1d3164052c96c622916e93438717d53a4db0a5b9f379bb1caff748b5f9c90e297d13284fe2810179b6020bbc49f24de66ef3452743674d1501f8d76a22df03921a96fe4aea88be3e82a64a2c96308f80d892f6736388dcd70d41603f7da50b56e402b9525957516c162af975f2f83fb3e9edd17563b52ae6d5aa8bc5eaead315578451291f294a18801767cf390016ec856ef6b83653d2a1dc7aae745c4e0437134a2fed2a07291573d54c299d94c85860cd0582833e89e8c0dee33ce5fb4c285cefd452464c78d98905ceb3104088cb5356c218e1258c8fff20f8b2214cfd4bf2dceecdbd0619216f8a7f1f36a4c18c0e7ae848bea5a9e6b42563602a4980b3d9f81d2c7c2af91f5c872c91810fb9276b39aa9b652ec5cf34776da72abd8b395b6a7ad1744862bfb5983ba563c63abe63f241cef26df2f9cadcfce8773d686f091ec09ba6f0d159e6398ddc197a633116f177b5dc14023817ee5d43d76938e0501046d5d6d8421719e9bf8ef7bb2faf5f6051ae49bebcc0a69e34222209272df5b978ecea56bf29d4f1a6da19ccb8c9f1cbda1148c3cc6aebc20f1616ce636931c3e3fca9ce7f60701c5ef7d8e37de40de7d4a819ad480ad5d404b5fe1e53b7f850b3268df56c6ac3ac0cda99d6e36bad689f7881c27934fd6add08d9aeece70c82336e648ae236e53712894a1869d2ade131a97555412c548ec4eb7585e8e84466a3b15bf07b486af5dfd954fe5061640c48b6c30973b025e7f81e67df38766cf1c76228be92d1673fe740952cb119262203f7d524263f3a47d7c30d2e4c317c45aeb5299f3996807cc354fe6b724de31fb8c7395db78414d5769122f564f32f586345bf5d57453dff3dc4a2f32ef264c7e8d4a0beb2535c8b0cd6a90ec0f169162966ba3f5a4fbd4200a57bd235be80d1fe0c8ec3daa6f5d03b58bda711eb47c08ff609d1bc51df21d919bbff1d8de3e0905493e2f5a2ac630995dbf7c98aa1cd60f2246e630fb4498a4b449d4738b1c4f44bcaa6e1d689ddaf68e4f2d27e6a09f0596bfd777cde7ff2db7a66d8405d5e771801ac1dada580b11870cf375d2ff24d1f4c9bbeb4fad015778353ac7ae6ceacb049e362de19597528db75f8985e3d2a091ebc03a805277b55410c47c02a37bafbbe8d5b17564d0f61e0c0f896f54c8d3cb7176c8f355ad44008fac6efc7627557f433ccdb1c67dbe994d26e082bca2d2f1a27c3e269da52747c3b8effc78bccf5f7299b6b3a0e0a93abfc4d3579f435fe1383f58ef48edad9bff46cf3f62f6d340c0da028b05ef7373857e85431c9eb4cb52908ab3173c72c654415031600ba57677e090781732a6a326e54691fa29c49dbea3582b762ef7c909caeaf1e6a6b7cfca2e07d3ecee89735a051c077e7ce0e526dc82c27b867b9215b1cdcd28d5f2d5e3cf4172a0a3369a6ce4cc3296f3154870e42de7b225fcac24bcf53c1553812ada482bf8d2365a68e29424ccb4333c5dc3d29498b975f56db24f478ea1194d2e832c83bb9bc712fe6cbf58005850884bc49782c391501e907aa8a19b3c73afd664c2b7a1a3af89f594731b4ed3803be99c00d997b00a419dcc0a76ebf648a62e03affebc7a8e23a40e54845d27acb5570c932844beab7844d53ca5695916233feb389f778159f1219f4b805bdc0b3e9d7540a869ecbd29710feefa07ff056c14227ae61b7cf1891f68131aeef0c81f1be47bec39d34dd436d4da2aaa031d014de2db0b81a64abcb48cd4f7a0bf29e67a4da2c456888c1ebeb1158efaf7cc986702d616a48fb0184ed17aa751c021fc3d5b8f215cc087d891060720173989b89b057edb32a8b76317dd16520d2c47074da580985468b785ff37efb03cf267b904bb256f9832d2381fc7869d01322335d36b62ec1c33a6ee45a949c9f24aafb61f698a494fce7119b612783902e3836adebc4a39cf06c9c73c09076ad2d1aabe559b80aa2b9ace19a68758f949dc71b8d24b0c0ae2d7db15d3de30bf51044640e7a4ecc79448117f8e526925b6eb11ff2e75f1df486e40ae0b9e8836759f3e2ad2dd6d19dbca6f1c1b23bbbfff1ad9818b49278d2f1ac071ba05e3452c6dbb4f7241c96d2f443775fc164b6432120a460c17935c8b9f3e10b7086e8b531786c81831bb48d5f24811c13f44a6c3712bc98e110cbfb3936810ff38850486d207276092a738ac3dac9e35476b7c6990fd5a708cb04093c6022a3b9faf003943050f087c27c0b6dda9c0f6204a18781c859aac6303ac193957e1305f3ef08352967fb9bb1c60b91bea5c95ec77935bf79a2bd1bffe85f7936c16f3c3cc0b8a81ee836cd8b844770024c7c88b8bdb723b90bfc0c8850ea33d5549690b7e64d3eb93d5d90af40d5e1396c213e49bd290c7f98add02fd8908209930971f78a360b7152679a57155788e3a63249379803357338b649a6d0ba967e022dafcc5436f3b9d57be841286399ac81e2a67f98c6247576370b0f3ef286172d1e53b245b0e675b2cecc1f42a7359e1b69837ed0da4cca1299820cb3a775f000b44cdd6abca83caf76c00378e81e3a10b6942fd8c9a228e5821ce771a15d4c9b96189e66a82a2cb6a18c5131a47e0d262f22a7e706b7ae02c35cc5842ed56e0887d9335fde8c65880931feee908a5e3e5f9444db13719a6b261b6186d9099dca6c9444f0d7ec6717fc0ca4661976e3974831a635b426b918811f1d27c7f9af248070a3c02762cd3db86b34e170bf02a34ae7e7d75525ff638154646d2e9cd50a47b14874926a6df9ffba77c54960e9c809bd1d8a8de375476c99bd3dbe785ea4362cd8f80ef376123815aeaf5771e15f730939be36eef406069648144d6afd046471d7d82aed6342c6bbc4c69ec4794200ccc4564b904543aa1516f0fb38121f80223ba623449eb42f0650dd842fe8d815a84ec044d579152dde538be9a4dd6ddf295eac7ccdc856c28ea8cd846ed63'
let dec = decipher.update(text, 'hex', 'utf8')
dec += decipher.final('utf8')
console.log(dec)