This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <div class="container-info"> | |
| <div class="info-title">Informações:</div> | |
| <div class="container-rows" | |
| :style="{ 'gridTemplateAreas': createAreas }"> | |
| <div :key="row" | |
| :style="{ 'font-weight': !(i % 2) ? 'bold' : 'normal' }" | |
| v-for="(row, i) in createRows"> | |
| {{ row }} | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| watch: { | |
| isFetching (isFetching) { | |
| const { | |
| google, | |
| googleProps, | |
| point, | |
| $refs: { | |
| input, | |
| map | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # initialization file (not found) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const m1 = Array.from({ length: 11 }, (k, v) => v) | |
| .reverse() | |
| .slice(0, 9) | |
| const m2 = Array.from({ length: 12 }, (k, v) => v) | |
| .reverse() | |
| .slice(0, 10) | |
| let tempCpf; | |
| let digito; | |
| let soma; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "a": 1 | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://blog.guya.net/2015/06/12/sharing-sessionstorage-between-tabs-for-secure-multi-tab-authentication/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "comments": [ | |
| { | |
| "x": "2019/06/05", | |
| "y": "4" | |
| }, | |
| { | |
| "x": "2019/05/29", | |
| "y": "6" | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ///This is a Frankenstein class that can extract the AES key from a KDK as described in: | |
| /// https://docs.microsoft.com/en-us/aspnet/core/security/data-protection/implementation/subkeyderivation?view=aspnetcore-2.2 | |
| ///With a bit of luck, this should let an ASP.NET app decrypt cookies generated by an ASPNETCore app | |
| ///Still consult https://docs.microsoft.com/en-us/aspnet/core/security/cookie-sharing?view=aspnetcore-2.2 to share cookies | |
| ///Credit for most of the code is from various parts of https://github.com/aspnet/AspNetCore/tree/master/src/DataProtection/DataProtection/src | |
| public unsafe class CookieDataProtector : IDataProtector | |
| { | |
| readonly string _base64MasterKey; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var appOptions = _conf.GetSection("AppOptions"); | |
| var purposes = appOptions.GetSection("CookieAadPurposes") | |
| .GetChildren(); | |
| services.AddCors(options => | |
| { | |
| options.AddPolicy(CorsPolicyName, | |
| //.AllowCredentials() | |
| builder => builder.AllowAnyHeader() | |
| .AllowAnyMethod() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public byte[] Unprotect(byte[] protectedData) | |
| { | |
| if (protectedData?.Length < 1) | |
| { | |
| return null; | |
| } | |
| var keyId = new byte[16]; | |
| var magicHeader = new byte[4]; | |
| var purposes = _appOptions.CookieAadPurposes; |